abstract class Type implements Comparable {

    String name
    String description

    static constraints = {
        name(unique:true, maxSize:50)
    }

    int compareTo(obj) {
        name.compareTo(obj.name)
    }

    String toString() {
        if (name) {
            return name
        }
        return ""
    }
}
